# Sets the minimum version of CMake required to build the native
# library. You should either keep the default value or only pass a
# value of 3.4.0 or lower.

cmake_minimum_required(VERSION 3.4.1)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -frtti -fexceptions")
add_definitions(-DANDROID_STL=gnustl_static)

# ADD_DEFINITIONS(-DMobile_RELEASE)

# Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds it for you.
# Gradle automatically packages shared libraries with your APK.

file(GLOB_RECURSE cpp_list  ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/BusinessCalc.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/BusinessInstanceMgr.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/BusinessUtils.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/ChartDBManager.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/ClassifyPrd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/ConfigBusiness.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/DataCenter.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/DataConfig.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/DataFormula.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/DataReqBusiness.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/DataState.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/ExportBusiness.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/HandleBusiness.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/IndicatorBusinesHandler.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/KLineActor.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/KLineBusinesData.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/KLineBusinesHandler.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/KLineBusiness.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/KLineDataRequest.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/ManagerBusiness.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NormalProc.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_AccountUpdate.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_DataListFailed.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_DealAdd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_Login.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_LoginState.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_MarginUpdate.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_OrderAdd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_OrderCancle.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_OrderDelete.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_OrderUpdate.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_PosAdd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_PosRemove.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_PosUpdate.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_PosUpdate_Cancle.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_Settlement.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_SymbolAdd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_SymbolDelete.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_SymbolUpdate.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOper_TradeFailed.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/NotifyOperBase.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/OpenCloseTimeManager.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/QuoteBusiness.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/ToolsProcBS.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/TradeBusiness.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/TradeNotifyFactory.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/UptrendBusinesData.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/UptrendBusinesHandler.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/business/UptrendDataRequest.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/common/BASE64_API.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/common/Buffer.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/common/bytecvt.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/common/cJSON.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/common/CommToolsT.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorImp.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/Config.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/IndicatorManager.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/IndicatorParser.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/stdafx.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/StdByteArrayFile.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/StdFile.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/data/FormularFormat.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/data/IndicatorDataMgr.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/data/tech/FormularCompute.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/data/tech/FormularComputeParent.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/data/tech/FormularContent.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/data/tech/LineRightBox.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/data/tech/Secretdrvhyt.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/util/stdarchive.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/util/stdstring.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/util/stdtime.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/util/stdutility.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/util/time64.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/util/unicode.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/indicator/IndicatorParser/util/md5/md5.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/logger/Log.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/network/ExportNetwork.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/network/ManagerNetwork.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/network/SimplyTcpInstanceMgr.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/network/TcpStreamInstanceMgr.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/network/httpsocket/HttpTools.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/platform/NormalFunCreater.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/BaseCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ExportProtocol.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ManagerProtocol.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/QuoteNetRspDataProc.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/QuoteProto.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ServerTestSpeed.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/TradeNetRspDataProc.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/TradeProto.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/ConfigResponseS.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/LoginBaseResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/MessageListResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/MobileResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/NewsInfoResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/NormalReqResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/PutSelectedInfoResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/ResetPwdResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/RgsResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/SelectedInfoResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/UpdatePwdResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/ConfigProto/UpdateResponse.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2QuoteProto/Cmd/QuoteCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2QuoteProto/Cmd/QuoteProtoCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/CommTools.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/Cmd/AccountCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/Cmd/DealCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/Cmd/FinfCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/Cmd/GroupCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/Cmd/OrderCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/Cmd/PositionCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/Cmd/ServerCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/Cmd/SymbolMarginLevelCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/protocol/gts2TradeProto/Cmd/UserCmd.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/public/NotUsePtr.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/crc32/crc32Ex.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/sqlite/ClientStore.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/sqlite/CppSQLite3.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/sqlite/DictStore.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/sqlite/IndicatorStore.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/sqlite/KLineDataStore.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/sqlite/TradeInfoStore.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/sqlite/UserConfigStore.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/sqlite/sqlite3.c
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/adler32.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/compress.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/crc32.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/deflate.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/gzclose.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/gzlib.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/gzread.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/gzwrite.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/infback.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/inffast.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/inflate.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/inftrees.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/trees.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/uncompr.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/thirdlibrary/zlib/zutil.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/transform/ExportTransform.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/transform/HandleTransform.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/transform/ManagerTransform.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/transform/StructAndJsonTransform.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/transform/TransformGetData.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/transform/TransformGetJson.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/terminal/transform/TransformInstanceMgr.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/native/android/core/GTTerminal.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/native/android/core/NativeAdapter.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/native/android/core/utils/AndroidCreater.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/native/android/core/utils/AndroidNormalFunImpl.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/native/unix/coreEx/UnixMsg2Impl.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/module/GTS2/protocolGTS2/ConfigProto/NormalReqResponseGTS2.cpp
                            ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/module/GTS2/transformGTS2/TransformGTS2GetData.cpp)


add_library( # Sets the name of the library.
             GW_Terminal

             # Sets the library as a shared library.
             SHARED

             # Provides a relative path to your source file(s).
             # Associated headers in the same location as their source
             # file are automatically included.

             ${cpp_list} )

include_directories(${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/native/android/core)

add_library( crypto
             STATIC
             IMPORTED )

set_target_properties( crypto
                       PROPERTIES IMPORTED_LOCATION
                       ${CMAKE_CURRENT_LIST_DIR}/src/main/jniLibs/${ANDROID_ABI}/libcrypto.a )

add_library( ssl
             STATIC
             IMPORTED )

set_target_properties( ssl
                       PROPERTIES IMPORTED_LOCATION
                       ${CMAKE_CURRENT_LIST_DIR}/src/main/jniLibs/${ANDROID_ABI}/libssl.a )

add_library( curl
             STATIC
             IMPORTED )

set_target_properties( curl
                       PROPERTIES IMPORTED_LOCATION
                       ${CMAKE_CURRENT_LIST_DIR}/src/main/jniLibs/${ANDROID_ABI}/libcurl.a )

include_directories( ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/native/android/core/Curl+SSL/include/ )

add_library( iconv
             SHARED
             IMPORTED )

set_target_properties( iconv
                       PROPERTIES IMPORTED_LOCATION
                       ${CMAKE_CURRENT_LIST_DIR}/src/main/jniLibs/${ANDROID_ABI}/libiconv.so )

include_directories( ${CMAKE_CURRENT_LIST_DIR}/../../GW_Terminal/native/android/core/iconv/ )

# Searches for a specified prebuilt library and stores the path as a
# variable. Because system libraries are included in the search path by
# default, you only need to specify the name of the public NDK library
# you want to add. CMake verifies that the library exists before
# completing its build.

find_library( # Sets the name of the path variable.
              log-lib

              # Specifies the name of the NDK library that
              # you want CMake to locate.
              log )

# Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in the
# build script, prebuilt third-party libraries, or system libraries.

target_link_libraries( # Specifies the target library.
                       GW_Terminal

                       curl

                       ssl

					   crypto

                       iconv

                       # Links the target library to the log library
                       # included in the NDK.
                       ${log-lib} )

target_link_libraries(GW_Terminal  -latomic)
